//
// Created by liaoyang on 2023-12-11.
//

#ifndef _BSP_USART_H
#define _BSP_USART_H

#include "usart.h"
#include "driver_communicate.h"
#include "data_fifo.h"
#include "driver_remote.h"

//#define RC_FRAME_LENGTH (18u)  /* 遥控器接收字节长度 */

void usart_communicate_config(usart_param_struct *usart_param);

void usart_dma_send(usart_param_struct *usart_param, const uint8_t *pData, uint32_t dma_buffer_size);

void USART1ConfigEnable(uint8_t *DMA_Memory0BaseAddr, uint8_t DMA_BufferSize);

#endif //_BSP_USART_H
